package com.yun.mapper;

import com.yun.pojo.RunAway;
import org.springframework.stereotype.Repository;

import java.util.LinkedHashMap;
import java.util.List;

/**
 * Created by qzy017 on 2019/7/2.
 */
@Repository
public interface RunAwayMapper {
    public void addRunAway(RunAway runAway) ;
  //月度排名
    List<LinkedHashMap> monthRunAway(RunAway runAway);
    //按年排名
    List<LinkedHashMap> yearRunAway(RunAway runAway);
    //按周排名
    List<LinkedHashMap> weekRunAway(RunAway runAway);
  //最大里程  时间和卡路里
  LinkedHashMap maxDistanceTimeCalories(RunAway runAway);
  //个人的所有里程数
  LinkedHashMap allDistance(RunAway runAway);
}
